Learn R Programming

TPXG (version 1.0)

Cumulative Mass Function of the TPPXG Distribution: Cumulative Mass Function of the TPPXG Distribution

Description

Computes the cumulative mass function of the Two Parameter Poisson Xgamma distribution for given values.

Usage

ptppxg(x , alpha = 1, theta = 1)

Value

A numeric vector containing the cumulative mass function of the TPPXG distribution for each of the given values of x.

Arguments

x

A numeric vector containg non-negative integer values.

alpha

A positive real number.

theta

A positive real number.

Author

Nikolaos Kontemeniotis.

R implementation and documentation: Nikolaos Kontemeniotis kontemeniotisn@gmail.com and Michail Tsagris mtsagris@uoc.gr.

Details

The cumulative distribution function of the Two Parameter Poisson Xgamma is given by: $$ F(x)=1-\frac{1}{2(\alpha+\theta)(1+\theta)^{x+3}}\left((x^2+5x+6)\alpha \theta^2+2(x+3)\alpha \theta +2(1+\theta)^2+2\alpha \right) $$

References

"Wani, M. A., Ahmad, P. B., Para, B. A. and Elah, N. (2023). A new regression model for count data with applications to health care data. International Journal of Data Science and Analytics."

See Also

dtppxg,qtppxg,rtppxg

Examples

Run this code
x <- rtppxg(100)
ptppxg(x, 1, 1)

Run the code above in your browser using DataLab